package com.grapro.visitorsystem.service;

import com.grapro.visitorsystem.dao.VisitorDao;
import com.grapro.visitorsystem.entity.VisitorEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VisitorService {
    @Autowired
    private VisitorDao visitorDao;

    public VisitorEntity getVisitorById(String visitorId) {
        return visitorDao.getVisitorById(visitorId);
    }
}
